#include "Tcpserver.hpp"
void Usage(string prco)
{
    cout<<prco<<" [1024++]"<<endl;
}

int main(int argc,char* argv[])
{
    if(argc!=2)
    {
        Usage(argv[0]);
        exit(0);
    }
    // daemon(0,0);
    Daemon("/");
    
    uint16_t port=stoi(argv[1]);
    Server srv(port);
    srv.Init();
    srv.start();

    return 0;
}